//
//  WeiViewController.m
//  GRWgif
//
//  Created by MNew on 16/4/11.
//  Copyright © 2016年 官煌、任嘉立、韦成恒. All rights reserved.
//

#import "WeiViewController.h"
#import "RenViewController.h"
#import "GuanViewController.h"

@interface WeiViewController ()

@end

@implementation WeiViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.title = @"Wei";
    self.edgesForExtendedLayout &= ~UIRectEdgeTop;
}
- (IBAction)secondButtonPressed:(id)sender {
    RenViewController *ren = [[RenViewController alloc] init];
    
    [self.navigationController showViewController:ren sender:nil];
    
    UIBarButtonItem *backItem = [[UIBarButtonItem alloc] initWithTitle:@"返回Wei" style:UIBarButtonItemStylePlain target:nil action:nil];
    
    self.navigationItem.backBarButtonItem = backItem;
}

- (IBAction)thirdButtonPressed:(UIButton *)sender {
    
    GuanViewController *guan = [[GuanViewController alloc] init];
    
    [self.navigationController showViewController:guan sender:nil];
    
    UIBarButtonItem *backItem = [[UIBarButtonItem alloc] initWithTitle:@"返回Wei" style:UIBarButtonItemStylePlain target:nil action:nil];
    
    self.navigationItem.backBarButtonItem = backItem;
    
    
    
}




- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
